{% extends 'register/base.html' %}
{% load i18n %}
{% if wms %}
{% block script %}
{% endblock %}
{% endif %}
{% block content %}

<h2><a href="{{dataset.get_absolute_url}}">{{dataset.title}}</a></h2>
<h4>{% trans 'available as' %} {{ datasource.format.name }}</h4>
 
<div id="metadata" class="metadata">

<table>
<tr><th>{% trans 'data set' %}</th>
    <td>{% if dataset.name %}{{dataset.name}}<br/>{% endif %}
        <a href="{{dataset.get_absolute_url}}">{{dataset}}</a></td></tr>
<tr><th>{% trans 'uri' %}</th><td>{{datasource.uri}}</td></tr>

<tr><th>{% trans 'format' %}</th><td>{{datasource.format}}</td></tr>

<tr><th>{% trans 'projection' %}</th>
    <td>{{datasource.proj}}
    </td></tr>

<tr><th>{% trans 'time period' %}</th>
<td>
{% if datasource.timespan %}
  {% if datasource.timespan.date %}
    {{ datasource.timespan.date }}
  {% else %}
   <b>{% trans 'start' %}</b>: {{ datasource.timespan.dtstart }} <br/>
   <b>{% trans 'end' %}</b>: {{ datasource.timespan.dtend }}
  {% endif %}
{% endif %}
  <a href="{{ baseurl }}timespan/for/datasource/{{ datasource.id }}">{% trans 'add' %}</a>
</td></tr>
<tr><td colspan="2"><a href="edit/">edit</a></td></tr>
</table>

</div>
<div id="preview"></div>
{% endblock %}
